package jeconbond.economic.systems.market;

public class MoneyAccount implements IMoneyAccount {
	private double balance;

	public MoneyAccount(double balance) {
		this.balance = balance;
	}

	public MoneyAccount() {
		this(0.0);
	}
	
	@Override
	public void changeBalance(double value) {
		balance += value;
	}

	@Override
	public double getBalance() {
		return balance;
	}
	
	@Override
	public String toString() {
		return "Money: " + balance;
	}
}
